Fraud Detection Rule Optimization

ABSTRACT

An improved method and apparatus for determining if a financial transaction is fraudulent is described. The apparatus in one embodiment collects transactions off of a rail using promiscuous listening techniques. The method uses linear programming algorithms to tune the rules used for making the determination. The tuning first simulates using historical data and then creates a matrix of the rules that are processed through the linear programming algorithm to solve for the variables in the rules. With the updated rules, a second simulation is performed to view the improvement in the performance. The updated rules are then used to evaluate the transactions for fraud.

PRIOR APPLICATION

This application is a priority non-provisional patent application.

BACKGROUND Technical Field

The apparatuses and methods described herein generally relate to fraud detection, in particular to the use of linear and non-linear programming techniques to detect financial fraud.

Description of the Related Art

The earliest history of fraud is found in the Greek literature, and history includes numerous schemes and tactics from taking money from others using deceptive means. One article in Forbes Magazine set the amount of money lost to fraud at $190 billion per year in 2009, with banks absorbing $11 Billion, consumers taking a $4.8 Billion hit, and merchants absorbing the rest. The sheer magnitude of the money lost to fraud has forced banks to place an increasing emphasis on fraud detection.

Today, banking fraud is a sophisticated global business. Cybercriminals are organized, coordinated, and highly specialized, thus creating a powerful network that is, in many ways, a significantly more efficient ecosystem than the banking industry. They continually reinvest their financial gains to advance technology and methods used to defeat the layers of security financial institutions put in place.

The pace of fraud innovation by fraudsters and their ability to invest in attacking banks and credit unions far outweigh these institutions abilities to invest in protecting themselves against rapidly evolving threats. Whether its phishing scams, mobile malware, banking Trojans, Man-In-the-Browser schemes, or the many techniques for bypassing multi-factor authentication, threats span online banking, mobile banking, as well as the ACH and wire payments channels. The range and sophistication of the threats against which financial institutions must defend themselves continue to grow.

The traditional approach to fraudulent activities is to manually analyze historical transactions looking for patterns or for transactions that are out of line with the norm. But these methods fail to prevent fraudulent activities, instead, they only serve to disclose what happened in the past. And the sheer volume of transactions prevents the review of more than a small sampling of the overall transaction set.

There is a long-felt need to efficiently and automatically review and identify potentially fraudulent transactions in real-time as the transactions cross the payment rail. Recent software solutions analyze payments or financial transfers against a set of rules to determine a risk score. The risk score is compared to a threshold that determines whether the transaction is fraudulent. But these rules are simple and not verifiable against the reality of the actual transactions. Many of the thresholds are set based on rules of thumb rather than based on data. A method is needed to improve the rules set, to tune, and verify the set of rules to minimize false positives and false negatives.

The present inventions overcome this shortcoming of the existing art.

BRIEF SUMMARY OF THE INVENTIONS

An improved apparatus for detecting fraud is disclosed herein. The apparatus is made up of a p-monitor, a rail, the p-monitor connected to the rail, and a data store connected to the p-monitor, the data store containing historical data, and a draft rule set. The p-monitor creates a matrix of each rule in the draft rule set for each historical transaction in the historical data and solves the matrix for each rule score using linear programming, said rule scores copied into a model rule set. The p-monitor also monitors the rail for a new transaction, applying data from the new transaction to the model rule set to produce a new transaction score, and if the new transaction score exceeds a threshold, the p-monitor indicates that the new transaction is fraudulent.

In some embodiments, the matrix is solved for a constant in one of the rules. If the p-monitor determines that the new transaction is fraudulent, the p-monitor could notify a fraud monitor that the new transaction is fraudulent and/or the p-monitor could notify a bank that the new transaction is fraudulent. The p-monitor could request that the bank block the new transaction.

In some embodiments, the p-monitor loops through each transaction in the historical data, calculating a transaction score for each historical transaction that is a sum of the rule scores for that historical transaction and comparing that score with the threshold to make a fraud determination, said fraud determination compared with an actual determination associated with the historical transaction to create a transaction accuracy score, the transaction accuracy score summed to determine a model rule set quality metric. The model rule set quality metric could be compared to an expected quality metric, and only copy the rule scores if the model rule set quality metric exceeds the expected quality metric.

The p-monitor could be connected to the rail through banking software, the banking software calling the p-monitor, and passing the new transaction to the p-monitor. Or the p-monitor could receive the new transaction in a message directed, on the rail, specifically to the p-monitor for processing. In still another embodiment, the p-monitor monitors the rail for the new transaction intended for another network device.

A method of detecting a fraudulent transaction on a rail is also described. The method is made up of the steps of (1) creating a matrix of each rule in a draft rule set for each historical transaction in a historical data stored in a data store; (2) solving the matrix for each rule score using linear programming; (3) copying said rule scores into a model rule set; (4) monitoring the rail for a new transaction; (5) applying data from the new transaction to the model rule set; (6) producing a new transaction score from the data and the model rule set; and (7) indicating that the new transaction is fraudulent if the new transaction score exceeds a threshold.

In some embodiments, the matrix is solved for a constant in one of the rules. The method could also include the step of (8) notifying a fraud monitor that the new transaction is fraudulent. In some embodiments the step of (9) notifying a bank that the new transaction is fraudulent and maybe the step of (10) requesting that the bank block the new transaction.

The method could also include the steps of (2a) looping through each transaction in the historical data; (2b) calculating a transaction score for each historical transaction that is a sum of the rule scores for that historical transaction; (2c) comparing the sum of rule scores with the threshold to make a fraud determination, said fraud determination compared with an actual determination associated with the historical transaction to create a transaction accuracy score; and (2d) summing said transaction accuracy score to determine a model rule set quality metric. Optionally the method could also include the modification of step (3) with (3a) comparing the model rule set quality metric to an expected quality metric, and only loading the rule scores if the model rule set quality metric exceeds the expected quality metric.

Step (4) could be modified as follows (4a) the monitoring of the rail is indirect through banking software. Or step (4) could be modified with (4b) the monitoring of the rail for the new transaction receives transactions intended for another network device.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of the components of the present system.

FIG. 2 is a flow chart of the rules optimization process.

FIG. 3 is a flow chart of the p-monitor rail monitoring process.

FIG. 4 is a diagram of the equipment used in one embodiment.

FIG. 5 is an x-y chart of the linear analysis of the fraud detection.

FIG. 6 is an x-y chart showing linear programming for fraud detection.

DETAILED DESCRIPTION

The present disclosure is now described in detail with reference to the drawings. In the drawings, each element with a reference number is similar to other elements with the same reference number independent of any letter designation following the reference number. In the text, a reference number with a specific letter designation following the reference number refers to the specific element with the number and letter designation and a reference number without a specific letter designation refers to all elements with the same reference number independent of any letter designation following the reference number in the drawings.

The present inventions propose an improved solution to the monitoring of banking and financial transactions for fraudulent activities. These techniques could also be used for financial account openings, analysis of payments and invoices, in the monitoring of pharmaceutical prescriptions for illegal distributions of controlled substances, in government monitoring of various activities, such as import and exports for tariff evasions or tax avoidance, for example, or for other uses. In each case, these techniques solve the problems of improving and tuning rule sets used in the monitoring of activities.

Looking to FIG. 1, a system diagram is presented showing the fraud monitoring environment. A database holding the historical data 101 contains all of the transaction records for a period of time. This timeframe could be anywhere from hours to decades of data, depending on the velocity of the transactions, but typically is a unit of months, perhaps 6 or 12 months of data. In some embodiments, each transaction seen on the rail 106 is added to the historical data 101, either through another process in the system or through the p-monitor software 105. In some embodiments, the historical data 101 is further edited to add information or to remove outliers. Such added information may include actual fraud determinations by a fraud investigation team. For instance, if a transaction is flagged by the p-monitor software 105 as fraudulent, it is sent to the fraud monitor 107 for analysis by the fraud investigation team. This team investigates the fraud and makes the ultimate decision on whether this is a false positive or a true positive. This information may be then added to the transaction record in the historical data 101. Similarly, if a transaction is not identified as fraud by the p-monitor software 105, but the fraud is discovered later, by a customer or another financial institution perhaps, then the fraud investigation team may update the transaction record in the historical data 101 to reflect the false negative. These false positive and false negative records are particularly relevant to the tuning of the model rule set 104 in the next round of tuning.

The objective of the process is to optimize the assignments of scores to the different incidents that the rule's engine creates. The rule sets 102, 104 have multiple templates, where the templates might have parameters and thresholds. Different thresholds may create different incidents. Each incident has a configured score. If the sum of scores due to the created incidents accedes a pre-defined threshold, a fraud alert is created.

In some embodiments, the historical data 101 is analyzed to produce statistics on the data. For instance, a count of the number of transactions, the sum of the amounts of the transactions, the number of transactions sent to blacklist destinations, etc. for a particular sending customer may be calculated and maintained as new transactions are added.

A draft rule set 102 is also stored in a database. The draft rule set 102 is a set of rules that may indicate fraudulent behavior when applied to a transaction. The draft rule set 102 could originate with the supplier of the tuning software 103 and p-monitor software 105, and may be refined by the financial institution operating the software. If the software has been installed for a period of time, the draft rule set 102 may be the result of one or more tuning iterations in the past that have refined the original rule set.

In the present embodiment, each incident (i) generates a score X_(i). The scores for each incident for a given transaction are summed (Σ_(i=0) ^(n)X_(i)), where n is the number of potential incidents, which might be produced by the rule set 102, 104, and if the sum is greater than a threshold (T), the then transaction is deemed fraudulent.

The rule set may be in the form of a human-readable description of the rules, a set of mathematical formulas, or may be in the form of a matrix of parameters for the rule set. In one example of a rule, the rule may read “WPF0201 Customer carries out a payment transaction to an account in a blacklist: If the customer's blacklist transaction count>0 and the transaction amount is >0, then score the transaction as 1000”. In this example, natural language processing is used to translate the formula into computer-usable formats. In a second example of a rule, the rule could be written “WPF0201: score=if (customer.BlackListCount>0) and (TransactionAmount>0) then 1000 else 0”. In still a third embodiment, the following matrix could be used:

TABLE 1 Matrix Rule Set Rejected Transaction Transaction Transaction New Blacklist Rule Amount Count Count Payees Count Score WPF0201 >0 >0 1000 WPF0208A >50,000 and ≤80,000 50 WPF0208B >80,000 80

The tuning software 103 transforms the draft rule set 102 into the model rule set 104 by using the historical data 101 to tune the parameters and score for each rule in the ruleset. This transformation is performed using linear programming in the present embodiment. In other embodiments, non-linear programming is used, if there is a need for non-linear (curves, exponential, logarithmic, quadratic, etc) rules.

The object of the tuning is to optimize the score value for each incident and to optimize the parameters such that the rules generate the smallest overall score for a non-fraudulent transaction without allowing a false-negative result. At the same time, the tuning is minimizing false-positive results.

Essentially, this solves for each X_(i) across a large number of transactions in the historical data 101. Let X_(i) be the score that should be assigned to incident i (i=1, . . . , n), let C_(ji) be the Boolean indicator for the occurrence of incident i in transaction j, and let T be a threshold score (so that according to the rule's engine, if the sum of scores by the incidents exceeds T, the transaction is a fraud). For instance, for this example rule, if the transaction is going to a blacklisted country, then the value of the incident X_(i) is added into the sum. If it is not going to a blacklisted country, then 0 is added to the sum.

$\min\left\{ {\sum\limits_{i = 1}^{n}X_{i}} \right\}$ Such  that ${\sum\limits_{i = 1}^{n}{C_{ij} \cdot X_{i}}} \geq {T\mspace{14mu}{for}\mspace{14mu}{all}\mspace{14mu}{transactions}\mspace{14mu} j}$ X_(i) ≥ 0  for  all  i

The tuning software 103 is described in more detail in the discussion of FIG. 2 below. The tuning software 103 outputs a model rule set 104 that is tuned with the historical data 101.

The model rule set 104 is a set of rules that may indicate fraudulent behavior when applied to a transaction. The model rule set 104 will use similar formats to the draft rule set 102, in most embodiments. In some other embodiments, the model rule set 104 will be in a machine-readable format, perhaps the matrix format in Table 1 or machine code that is readily executable by a central processing unit 404 in the p-monitor 406. The model rule set 104 is used by the p-monitor software 105 to analyze each transaction see on the rail 106.

The p-monitor software 105, in some embodiments, listens to the transactions on the rail 106 in promiscuous listener mode, retrieving all transactions that cross the rail 106. When a transaction is seen, it is stored in the historical data 101 and the transaction is compared to the model rule set 104 to determine if the transaction is fraudulent. The details of the p-monitor software 105 are found below in conjunction with the discussion of FIG. 3. In another embodiment, a bank, a financial institution, or another software package could collect the transactions and send them to the p-monitor software 105. For instance, a bank 108 may run banking software that processes each transaction that the bank 108 receives on the rail 106. The banking software may send each transaction to the p-monitor software before processing the transaction to see if the transaction is fraudulent.

The rail 106 is a payment or banking rail used to connect banks, financial institutions, or their customers. It is a high-security network that uses encryption and limits access either physically or virtually (VPN). The physical implementation of the rail 106 could be the internet, a local area network, a wireless network, a combination of the above, or any other networking technology.

If the p-monitor software 105 determines that a transaction is fraudulent, then the p-monitor software, in some embodiments, notifies the bank 108 (or financial institution or the customer) to hold the transaction. A notification is also sent to the fraud monitor 107 for investigation by the fraud investigation team. The fraud investigation team then will review the transaction and the historical data to decide on whether to cancel the transaction. The fraud investigation team will also mark the transaction as actual fraud, false-positive, or justified. A justified determination is when the transaction appears fraudulent and it not fraud, but the fraud investigation team wants to review this type of transaction. When tuning in the future, the justified transactions are considered fraudulent.

The fraud monitor 107 could be a personal computer, laptop, smartphone, tablet, smartwatch, or similar device connected directly or indirectly through a network to the p-monitor 406. The fraud monitor 107 has the interface between the p-monitor software and the fraud investigation team.

FIG. 2 shows the details of the tuning software 103. The start of the rule tuning 201 process begins with defining rules 202 and defining parameters 203. The initial rule set could come from the software vendor and then be modified by the customer. In other instances of the rule tuning process, the rules and parameters are defined by a previous iteration through this software. Each rule may create one or more incidents and might have several parameters that affect its operation. Each incident has a score value. For example, rule WPF0208 covers incidents which are generated when a customer carries out excessive payment transactions to a country where he has never made any transactions to that country before. The relevant parameters might be the lookback period (how far back do we check to see if a transaction has ever been sent to that country), the vesting period, the minimum learning period, the minimum number of transactions, the minimal total amount, the countries active list, and the set of scores. Different incidents might be created by the rule, depending for example on the payment amount. Transactions of large amounts might generate one incident, while transactions with a lower amount might generate another incident.

Each parameter might have static values (for example, the lookback period may always be 180 days, and not tunable), which means that it does not participate in the optimization, or it can receive a set of values. Each such unique value is responsible for a single incident. The set of values might come from a per-customer calculation. For example, the minimum total amount might receive [V1, V2, V3] where V1 is the 50 percentile of the transaction amount of customer accounts' transactions, V2 the 75 percentile, and V3 the 90 percentile. The number of unique values shouldn't be too large, and it is recommended to span a range of values only to the numeric parameters (e.g., transaction amount). Each unique combination of values to the different parameters define a different incident for the rule. For example, WPF0208_V1 might be defined as the incident that is generated by rule WPF0208 when the transaction amount parameter receives V1 (assuming that all the other parameters in this rule are static).

Once the rules, parameters, and scores are set, a simulation 204 is run on the draft rule set 102 using the historical data 101, creating a table with all of the rules and transactions. The resulting table may look similar to Table 2.

TABLE 2 Simulation result matrix Transaction WPF0201 WPF0208A WPF0208B WPF0209 WPF0211 Calculated Actual ID Incident Incident Incident Incident Incident Score Fraud Fraud 10201 0 50 0 0 1000 1050 YES NO 10202 1000 0 80 0 0 1080 YES YES 10215 0 0 0 0 0 0 NO NO

In Table 2, a subset of the transactions rules and incidents are listed, as the number of transactions could be in the millions and the number of incidents could number up to several hundred. The transaction ID comes from either the actual transaction number or from a unique identifier in the historical data 101. The value for each cell is the score that is associated with the incident. For example, in transaction 10202, the customer is trying to send $85,000 and has sent money to a blacklist destination within the past 180 days. The result for rule WPF0201: score=if (customer.BlackListCount>0) and (TransactionAmount>0) then 1000 else 0 will be 1000, because of the blacklist history and the transaction amount is greater than 0. WPF0208A is 0 because the transaction amount is not between $50,000 and $80,000, and WPF0208B is 80 because the transaction is greater than $80,000 (rule WPF0208 produces an incident with a score of 50 if the transaction amount is over $50,000 and an incident with a score of 80 if over $80,000). The sum of 1000, 0, and 80 is 1080, the score for this transaction. Since the score is greater than T, the fraud threshold of 1000, we calculate that the transaction is a fraud. This matches the actual fraud for this transaction, so the model produces a true fraud. Transaction 10201 calculates 1050, over the fraud threshold T, so we calculate that it is fraudulent, but the actual determination is that the transaction is not fraudulent, so we have a False Positive. Once the simulation is complete, an accuracy metric is calculated by calculating the percentage of False Positives and False Negatives. These numbers represent the quality of the ruleset.

Next, a linear programming matrix is initialized 205 to zero, and then the linear programming matrix is filled and solved for the minimum rule score values and the minimum constants required, using the PuLP linear programming package in one embodiment. Other embodiments might be using different software for solving the linear program. For each transaction 206 in the historical data 101, loop through analyzing each rule. For each rule 207 in the draft rule set 102, loop through the incidents, testing the conditions 208 to see if the conditions are met and if so, the incident is added to the matrix 209 and the next rule is retrieved 221. In the PuLP embodiment, the entire row of the matrix is a string containing the formula to solve, so the addition of the rule is a concatenation of the string containing that rule. The values are not plugged in, the rule is simple: WPF0201: score=if (customer.BlackListCount>0) and (TransactionAmount>0) then 1000 else 0 will be 1000. Other formats could be used without detracting from the inventions. When all rules are processed, the next transaction 231 is retrieved.

Once all of the rules are entered for all transactions, the linear program (as stored in the matrix) is solved 214 by using the PuLP solve( ) function. Other linear programming packages could also be used without detracting from these inventions.

The PuLP package uses algorithms such as the Revised Simplex Method or Interior Point Methods for simple and well-understood matrices. More complicated problems use heuristic methods that do not guarantee optimality. Other algorithms for solving linear programming problems include George Dantzig's simplex algorithm or a criss-cross algorithm.

Once the linear program is solved 214, each calculated parameter and the calculated score for each rule are copied back into the draft rule set 102 creating the model rule set 104.

The model rule set 104 is then run through the simulation 210, using the historical data 101, in the same way, the simulation was performed in 204. Once the simulation is complete, an accuracy metric is calculated by calculating the percentage of False Positives and False Negatives. These numbers represent the quality of the model rule set 104. If the quality numbers did not improve, if the linear program could not be solved, or if the quality numbers are still not at an acceptable level 211, reinitialize the matrix 205 with a new rules set 213 (changing various C_(ij) constraints or eliminating one or more rules) and rerun the linear programming using the model rule set 104.

If the results are acceptable 211, return 212 the model rule set 104 to the calling routine where it is saved.

FIG. 3 shows a flow chart of the p-monitor software 105 using the model rule set 104 to determine if transactions on the rail 106 are fraudulent. The p-monitor software 301 begins by collecting a transaction from the rail 302. In this embodiment, the p-monitor 406 listens to all traffic on the rail 106 in promiscuous listener mode and sorts through the network packets for application-layer transactions. In other embodiments, the transactions are sent to the p-monitor software 105 either by calling the p-monitor software 105 as a subroutine or by sending transaction messages to the p-monitor software 105, operating as software-as-a-service.

Once the p-monitor software 105 has the transaction, the transaction is sent for storage 303 in the historical data 101, and various statistics in the historical data 101 are updated. For instance, the countries where the customer sends transactions are updated, and the count of transactions per country is updated. In some embodiments, step 302 is performed in a calling routine. In other embodiments, the historical data is not updated. In still other embodiments, the transaction is stored, but the statistics are not updated immediately but are batched for updating later.

The transaction is next run through the model rule set 304. Each rule in the model rule set 104 is first examined to see if the conditions are met (C_(i)) and if the conditions are met, then the score is calculated according to the score of the incident (X_(i)). The scores for the incidents are then summed and compared to the threshold T.

${FRAUD} = {T \leq {\sum\limits_{i = 1}^{n}{C_{i}X_{i}}}}$

If the transaction is not determined to be fraudulent 305, then the p-monitor software 105 waits for the next transaction 310.

If the transaction is fraudulent 305, then the transaction is sent 306 to the fraud monitor 107 so that the fraud investigation team can research the transaction, verify that this is a true positive, and mark false-positives. The investigation team may also inform law enforcement, close accounts, and take other measures to prevent the recurrence of the fraud.

In addition, the bank 108 is notified to block the transaction 307, in most embodiments. This may involve sending a message to the sending and receiving financial institutions requesting that the transaction be canceled. In some embodiments, the p-monitor software 105 simply returns an indication that the transaction is fraudulent, and the calling software handles the canceling of the transaction and the notifications.

FIG. 4 shows one possible physical embodiment of the fraud monitoring system. The rail 401 (see also 106) is a network, such as the Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11), token ring, fiber optic, cellular in the form of a local area network, a wireless network, a wide area network or similar. The rail 401 in this embodiment has a tap 402 allowing the p-monitor 406 to access the rail 401. The rail 401 could be a payment network, a banking network, a financial transaction network, etc.

The rail 401 is connected to a merchant 410 and to a bank 409. In a typical embodiment, there would be numerous merchants and could be a number of banks as well. The merchant 410 would send a payment transaction message to the bank 409 over the rail 401, instructing that a payment be made. The p-monitor 406 listens to the rail 401 and sees the transaction, and determines if it is fraudulent. If so, the p-monitor 406 sends the bank 409 a message over the rail 401 stopping the transaction.

The tap 402 connects to a promiscuous transceiver 403, a wired or wireless receiver/transmitter that is configured to receive all rail 401 traffic.

The p-monitor 406 includes a promiscuous transceiver 403, a central processing unit 404 for comparing the rules to the transactions and for operating a promiscuous network stack. This central processing unit 404 could be a high performance, multi-core device for handling the volume of transactions. In some embodiments, the central processing unit 404 could be a combination of ASICs for processing the network stacks and ASICs for high-performance comparison of the transactions to the rules sets. A microprocessor may also be part of this ASIC combination to manage the processing. The p-monitor 406 also includes memory 405 for storing the data while processing. In this embodiment, the transceiver 403, the central processing unit 404, and the memory 405 are mechanically and electrically connected within the p-monitor 406. The p-monitor 406 runs the p-monitor software 105, and in some embodiments also runs the tuning software 103.

The p-monitor 406 is connected, electrically, optically, or wirelessly, to the rules data store 407 and to the historical data store 408. The rules data store 407 could contain both the draft rules 101 and the model rules 104 in some embodiments. The historical data 101 is stored in the historical data store 408. In some embodiments, the historical data store 408 and the rules data store 407 could be the same physical device. Both data stores 407,408 could be a magnetic hard drive, an optical drive, a solid-state drive, a RAM, or similar data storage device.

FIG. 5 is a chart of the linear analysis of the fraud detection. The sum of the scores from each rule (X_(i)) is plotted on the line t, and if the sum is less than T (1000 in this embodiment), then no fraud is determined, otherwise, the transaction is determined to be fraudulent.

FIG. 6 is an x-y chart demonstrating, in graphical form, how linear programming is used in fraud detection. The x-axis 601 runs from zero upwards and represents the number of false positives. The y-axis 602 runs from zero upwards and represents the number of false negatives. The goal is to minimize false positives and false negatives. In some embodiments, the goal is to minimize false positives while preventing any false negatives. In other embodiments, some false negatives may be permitted. The curve of the ratio 603 of false positives to false negatives is seen as a solid line in FIG. 6. Through linear programming, the algorithms seek to minimize the false positive and false negatives while remaining within the constraints. This points to the solid circle 607. The constraints are then adjusted using the tuning software 103 to focus the rules to this solution 607.

It should be appreciated that many of the elements discussed in this specification may be implemented in a hardware circuit(s), a circuitry executing software code or instructions which are encoded within computer-readable media accessible to the circuitry, or a combination of a hardware circuit(s) and a circuitry or control block of an integrated circuit executing machine-readable code encoded within a computer-readable media. As such, the term circuit, module, server, application, or other equivalent description of an element as used throughout this specification is, unless otherwise indicated, intended to encompass a hardware circuit (whether discrete elements or an integrated circuit block), a circuitry or control block executing code encoded in a computer-readable media, or a combination of a hardware circuit(s) and a circuitry and/or control block executing such code.

All ranges and ratio limits disclosed in the specification and claims may be combined in any manner. Unless specifically stated otherwise, references to “a,” “an,” and/or “the” may include one or more than one, and that reference to an item in the singular may also include the item in the plural.

Although the inventions have been shown and described with respect to a certain embodiment or embodiments, equivalent alterations and modifications will occur to others skilled in the art upon the reading and understanding of this specification and the annexed drawings. In particular regard to the various functions performed by the above-described elements (components, assemblies, devices, compositions, etc.), the terms (including a reference to a “means”) used to describe such elements are intended to correspond, unless otherwise indicated, to any element which performs the specified function of the described element (i.e., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary embodiment or embodiments of the inventions. In addition, while a particular feature of the inventions may have been described above with respect to only one or more of several illustrated embodiments, such feature may be combined with one or more other features of the other embodiments, as may be desired and advantageous for any given or particular application.

The above description of the embodiments, alternative embodiments, and specific examples, are given by way of illustration and should not be viewed as limiting. Further, many changes and modifications within the scope of the present embodiments may be made without departing from the spirit thereof, and the present inventions include such changes and modifications. 

1. An improved apparatus for detecting fraud, the apparatus comprising: a p-monitor; a rail, the p-monitor connected to the rail; a data store connected to the p-monitor, the data store containing historical data and a draft rule set; wherein the p-monitor creates a matrix of each rule in the draft rule set for each historical transaction in the historical data and solves the matrix for each rule score using linear programming, said rule scores copied into a model rule set; and wherein the p-monitor monitors the rail for a new transaction, applying data from the new transaction to the model rule set to produce a new transaction score, and if the new transaction score exceeds a threshold, the p-monitor indicates that the new transaction is fraudulent.
 2. The apparatus of claim 1 wherein the matrix is solved for a constant in one of the rules.
 3. The apparatus of claim 1 wherein the p-monitor notifies a fraud monitor that the new transaction is fraudulent.
 4. The apparatus of claim 1 wherein the p-monitor notifies a bank that the new transaction is fraudulent.
 5. The apparatus of claim 4 wherein the p-monitor requests that the bank block the new transaction.
 6. The apparatus of claim 1 wherein the p-monitor loops through each transaction in the historical data, calculating a transaction score for each historical transaction that is a sum of the rule scores for that historical transaction and comparing that score with the threshold to make a fraud determination, said fraud determination compared with an actual determination associated with the historical transaction to create a transaction accuracy score, said transaction accuracy score summed to determine a model rule set quality metric.
 7. The apparatus of claim 6 wherein the model rule set quality metric is compared to an expected quality metric, and only copies the rule scores if the model rule set quality metric exceeds the expected quality metric.
 8. The apparatus of claim 1 wherein the p-monitor is connected to the rail through banking software, said banking software calling the p-monitor and passing the new transaction to the p-monitor.
 9. The apparatus of claim 1 wherein the p-monitor receives the new transaction in a message directed specifically to the p-monitor for processing.
 10. The apparatus of claim 1 wherein the p-monitor monitors the rail for the new transaction intended for another network device.
 11. A method of detecting a fraudulent transaction on a rail, the method comprising: creating a matrix of each rule in a draft rule set for each historical transaction in a historical data stored in a data store; solving the matrix for each rule score using linear programming; copying said rule scores into a model rule set; monitoring the rail for a new transaction; applying data from the new transaction to the model rule set; producing a new transaction score from the data and the model rule set; and indicating that the new transaction is fraudulent if the new transaction score exceeds a threshold.
 12. The method of claim 11 wherein the matrix is solved for a constant in one of the rules.
 13. The method of claim 11 further comprising notifying a fraud monitor that the new transaction is fraudulent.
 14. The method of claim 11 further comprising notifying a bank that the new transaction is fraudulent.
 15. The method of claim 14 further comprising requesting that the bank block the new transaction.
 16. The method of claim 11 further comprising: looping through each transaction in the historical data; calculating a transaction score for each historical transaction that is a sum of the rule scores for that historical transaction; comparing the sum of rule scores with the threshold to make a fraud determination, said fraud determination compared with an actual determination associated with the historical transaction to create a transaction accuracy score; and summing said transaction accuracy score to determine a model rule set quality metric.
 17. The method of claim 16 further comprising comparing the model rule set quality metric to an expected quality metric, and only copying the rule scores if the model rule set quality metric exceeds the expected quality metric.
 18. The method of claim 11 wherein the monitoring of the rail is indirect through banking software.
 19. The method of claim 11 wherein the monitoring of the rail for the new transaction receives transactions intended for another network device.
 20. A method of detecting a fraudulent transaction on a rail, the method comprising: means for creating a matrix of each rule in a draft rule set for each historical transaction in a historical data stored in a data store; solving the matrix for each rule score using linear programming; loading said rule scores into a model rule set; means for monitoring the rail for a new transaction; applying data from the new transaction to the model rule set; means for producing a new transaction score from the data and the model rule set; and means for indicating that the new transaction is fraudulent if the new transaction score exceeds a threshold. 